
namespace JTZY.Model.Business
{
    /// <summary>
    /// 地区表
    /// </summary>
    [SugarTable("corecmsarea")]
    public class Corecmsarea
    {
        /// <summary>
        /// 地区ID 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 父级ID 
        /// </summary>
        public int? ParentId { get; set; }

        /// <summary>
        /// 地区深度 
        /// </summary>
        public int? Depth { get; set; }

        /// <summary>
        /// 地区名称 
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 地区排序 
        /// </summary>
        public int Sort { get; set; }

        [SugarColumn(IsIgnore = true)]
        public List<Corecmsarea> Children { get; set; }
    }
}